<?xml version='1.0' encoding='UTF-8' ?>
<ui:composition xmlns="http://www.w3.org/1999/xhtml"
	xmlns:f="http://java.sun.com/jsf/core" 
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:c="http://java.sun.com/jsp/jstl/core" template="template.xhtml">
	<ui:define name="content">
		<p>#{game.message}:</p>
		<h:form>
			<h:inputText id="bid" size="2" required="true" requiredMessage="You must enter a bid!"  value="#{game.number}">
				<f:validateLength minimum="1" maximum="3"/>
				<f:validateLongRange maximum="100" minimum="0"/>
			</h:inputText>
			<h:commandButton value="Guess" action="#{game.makeGuess}" /><br/>
			<h:message for="bid" styleClass="error"/>
			
		</h:form>
	</ui:define>
</ui:composition>
